package com.project.finance.product.service.impl;

import com.project.finance.common.mapper.TbProductDetailMapper;
import com.project.finance.common.po.TbProductDetail;
import com.project.finance.product.service.DetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DetailServiceImpl implements DetailService {

    @Autowired
    private TbProductDetailMapper productDetailMapper;

    @Override
    public List<TbProductDetail> ListSelect() {
        return productDetailMapper.selectAll();
    }

    @Override
    public int update(TbProductDetail tbProductDetail) {
        return productDetailMapper.updateByPrimaryKey(tbProductDetail);
    }

    @Override
    public int delete(List<Integer> productDetailId) {
        return productDetailMapper.listDelete(productDetailId);
    }
}
